<template>
  <div>
    <el-row :gutter="10">
      <el-col :span="6">
        <el-card>
          <Detail title="总销售额" count="￥ 123659">
            <template slot="charts">
              <span>
                <br /><br />
                周同比&nbsp;56.67%
                <i class="el-icon-caret-top" style="color: red"></i>
              </span>
              <span>
                &nbsp;日同比&nbsp;19.16%
                <i class="el-icon-caret-bottom" style="color: #25e140"></i>
              </span>
            </template>
            <template slot="footer">
              <span>日销售额￥&nbsp;123423</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
          <Detail title="访问量" count="12345">
            <template slot="charts">
              <lineChart></lineChart>
            </template>
            <template slot="footer">
              <span>日访问量&nbsp;123423</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
          <Detail title="支付笔数" count="88490">
            <template slot="charts">
              <barChart />
            </template>
            <template slot="footer">
              <span>转化率&nbsp;65%</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
          <Detail title="运营活动效果" count="78%">
            <template slot="charts">
              <progressChart />
            </template>
            <template slot="footer">
              <span>
                周同比&nbsp;56.67%
                <i class="el-icon-caret-top" style="color: red"></i>
              </span>
              <span>
                &nbsp;日同比&nbsp;19.16%
                <i class="el-icon-caret-bottom" style="color: #25e140"></i>
              </span>
            </template>
          </Detail>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import Detail from "./Detail";
import lineChart from "./lineChart";
import barChart from "./barChart";
import progressChart from "./progressChart";
export default {
  name: "Card",
  components: { Detail, lineChart, barChart, progressChart },
};
</script>

<style></style>
